package com.jacen.fzxs.service;


import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.jacen.fzxs.entity.RightEntity;
import com.jacen.fzxs.web.Pager;

/**
 * 用户Service接口
 * @author Jacen
 *
 */
public interface IRightService extends IBaseService<RightEntity> {

	public List<RightEntity> getPage(Pager pager, Map<String, String> params) throws SQLException;

	/**
	 * 获取所有子权限
	 * @param string
	 * @return
	 */
	public List<RightEntity> getListByUpId(String string);

	/**
	 * 角色拥有的权限
	 * @param id
	 * @return
	 */
	public List<RightEntity> getListByRole(String roleId);
	
	/**
	 * 角色拥有的权限 ids
	 * @param id
	 * @return
	 */
	public List<String> getIdsByRole(String roleId);

	public void deleteAndChilds(String id);
	
}
